//creative approach at UI used for both in game and debug purposes
//the UI requires only the mouse/touchpad for everything besides text entry
//keyboard shortcuts will be available as well however

var doll = (function(_doll) {
    
    _doll.ui = _doll.ui || {};

    _doll.ui.init = function() {
        console.log('*UI Initialization*');
        this.elements = [];
    }

    _doll.ui.add = function(elem) {
        _doll.ui.elements[this.elements.length] = elem;
    }

    _doll.ui.animate = function(delta) {
        for(var i=0; i < this.elements.length; i++) {
            _doll.ui.elements[i].mesh.rotation.y += 1.0 * delta;
        }
    }
    return _doll;
}(doll || {}));
